package model

import "time"

// 定义解析json数据的结构体
type TwitterAdCostAge struct {
	DataType         string `json:"data_type"`
	TimeSeriesLength int    `json:"time_series_length"`
	Data             []struct {
		ID     string `json:"id"`
		IDData []struct {
			Segment struct {
				SegmentName  string `json:"segment_name"`
				SegmentValue string `json:"segment_value"`
			} `json:"segment"`
			Metrics struct {
				Impressions            []int       `json:"impressions"`
				TweetsSend             interface{} `json:"tweets_send"`
				BilledChargeLocalMicro []int       `json:"billed_charge_local_micro"`
				QualifiedImpressions   interface{} `json:"qualified_impressions"`
				Follows                interface{} `json:"follows"`
				AppClicks              []int       `json:"app_clicks"`
				Retweets               interface{} `json:"retweets"`
				Unfollows              interface{} `json:"unfollows"`
				Likes                  []int       `json:"likes"`
				Engagements            []int       `json:"engagements"`
				Clicks                 []int       `json:"clicks"`
				CardEngagements        []int       `json:"card_engagements"`
				PollCardVote           interface{} `json:"poll_card_vote"`
				Replies                interface{} `json:"replies"`
				URLClicks              interface{} `json:"url_clicks"`
				BilledEngagements      []int       `json:"billed_engagements"`
				CarouselSwipes         interface{} `json:"carousel_swipes"`
			} `json:"metrics"`
		} `json:"id_data"`
	} `json:"data"`
	Request struct {
		Params struct {
			StartTime        time.Time   `json:"start_time"`
			SegmentationType string      `json:"segmentation_type"`
			EntityIds        []string    `json:"entity_ids"`
			EndTime          time.Time   `json:"end_time"`
			Country          interface{} `json:"country"`
			Placement        string      `json:"placement"`
			Granularity      string      `json:"granularity"`
			Entity           string      `json:"entity"`
			Platform         interface{} `json:"platform"`
			MetricGroups     []string    `json:"metric_groups"`
		} `json:"params"`
	} `json:"request"`
}
